import java.util.Scanner;

public class d063_0_與_1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String input, output;
		int a;
		
		while(sc.hasNext()) {
			input = sc.nextLine();
			a = Integer.parseInt(input);
			
			output = "0";
			while(a == 0) {
				output = "1";
				break;
			}
			
			System.out.println(output);
		}
	}
	
}